﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{

    public class BasePurchaseBillBLL
    {
        private BasePurchaseBillDAL dal;
        public BasePurchaseBillBLL()
       {
          dal = new BasePurchaseBillDAL();
       }
        public List<string> FindPurchaseBillIDByPurchaseBillID(string pid)
        {
            return dal.FindPurchaseBillIDByPurchaseBillID(pid);
        }
        public List<string> FindPurchaseBillIDByClerk(string cle)
        {
            return dal.FindPurchaseBillIDByClerk(cle);
        }
        public List<string> FindPurchaseBillIDByExaminer(string examiner)
        {
            return dal.FindPurchaseBillIDByExaminer(examiner);
        }
        public List<string> FindPurchaseBillIDByDate(DateTime dat, DateTime end)
        {
            return dal.FindPurchaseBillIDByDate(dat, end);
        }
        public List<string> FindPurchaseBillIDByOnprocess(int  opn)
        {
            return dal.FindPurchaseBillIDByOnprocess (opn);
        }
        public PurchaseBill FindPurchaseBillByPurchaseBillID(string pid, List<PurchaseDetail> listDetail)
        {
            return dal.FindPurchaseBillByPurchaseBillID(pid, listDetail);
        }
        public PurchaseBill FindDetailPurchaseBillByPurchaseBillID(string pid)
        {
            return dal.FindDetailPurchaseBillByPurchaseBillID(pid);
        }
  }
   
}
